SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE procedure dbo.[DnnProduct_GetSkins]

    @PortalID		int

AS
    SELECT *
    FROM	dbo.DnnProduct_Skins
    WHERE   ( PortalID is null or PortalID = @PortalID )
    ORDER BY PortalID desc
GO
